package com.db.concurrency.pool;

import java.sql.Connection;
import java.util.concurrent.TimeUnit;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public interface ConnectionPool {
    Connection getConnection();

    Connection tryGetConnection();

    Connection tryGetConnection(long timeout, TimeUnit timeUnit) throws InterruptedException;
}
